{% extends "base.html" %}

{% block title %}iCoach - Admin{% endblock %}

{% block content %}
    <div class="admin">        
        <div class="ad_top"><h3>Profile User: {{ user }}</h3></div>
        <div class="ad_middle">
        	<a class="edit" href="/profile/{{ user }}?action=edit">Edit Profile</a>
        	<br />
			
			{% if not edit %}
				<table id="displayProfile"> 
			        <tr><td>Name: </td><td>{{ name }}</td></tr>
					<tr><td>Birthday: </td><td>{{ bday }}</td></tr>
					<tr><td>Phone Carrier: </td><td>{{ phone_car }}</td></tr>
					<tr><td>Phone Numer: </td><td>{{ phone_num }}</td></tr>
					<tr><td>Due Date: </td><td>{{ due_date }}</td></tr>
					<tr><td>Pre-Pregnancy Weight:</td><td>{{ pre_weight }}</td></tr>
					<tr><td>Height:</td><td>{{ height }}</td></tr>
					<tr><td>Age:</td><td>{{ age }}</td></tr>
					<tr><td>BMI:</td><td>{{ bmi }}</td></tr>
					<tr><td>Timezone:</td><td>{{ tmz }}</td></tr>
				</table>
			{% else %}
				<form id="editForm" action="/profile/{{ user }}?action=edit" method="post">
					<table id="editProfile">
						<tbody>{{ ProfileForm }}</tbody>
						<tbody>
							<tr><td>&nbsp;</td><td><button id="create" type="submit">Update Account</button></td></tr>					
						</tbody>			
					</table>
				</form>
			{% endif %}
			<!--			                                          
	        <form action="/profile/{{ user }}/" method="post">
	        <table id="register">
		        <tr><td>Name:</td><td>{{ name }}</td></tr>
				<tr><td>Name:</td><td>{{ name }}</td></tr>
		        <tr><td>&nbsp;</td></tr>
		        <tr>
			        <td>
				        Birthday <input type="text" class="bday" name="bday" maxlength="10" value="{{ bday }}"/>
				        i.e. MM/DD/YYYY
			        </td>
		        </tr>
		        <tr><td>&nbsp;</td></tr>
		        <tr>
			        <td>
			        <input type="hidden" id="phone_car" value="{{ phone_car }}"/>
			        Phone Carrier 	<select name="phone_car" id="carrier">								        
								        <option id="AT&T" value="AT&T">AT&amp;T</option>
								        <option id="Alltel" value="Alltel">Alltel</option>
								        <option id="T-mobile" value="T-mobile">T-mobile</option>
								        <option id="Verizon" value="Verizon">Verizon</option>
								        <option id="Virgin Mobile" value="Virign Mobile">Virign Mobile</option>
								        <option id="Suncom" value="Suncom">Suncom</option>
								        <option id="Sprint (PCS)" value="Sprint (PCS)">Sprint (PCS)</option>
								        <option id="Sprint (Nextel)" value="Sprint (Nextel)">Sprint (Nextel)</option>
								        <option id="Cigular GoPhone" value="Cingular GoPhone">Cingular GoPhone</option>						  
							        </select>
			        </td>						                        
		        </tr>
		        <tr><td>&nbsp;</td></tr>	
		        <tr>
			        <td>Phone Number <input type="text" name="phone_num" maxlength="12" value="{{ phone_num }}"/>i.e. 999-999-9999</td>	
		        </tr>
		        <tr><td>&nbsp;</td></tr>
		        <tr>
			        <td>Due Date <input type="text" class="due_date" name="due_date" maxlength="10" value="{{ due_date }}"/>i.e. MM/DD/YYYY</td>
		        </tr>
		        <tr><td>&nbsp;</td></tr>
		        <tr>
			        <td>Pre-pregnacy Weight <input type="text" name="pre_weight" maxlength="3" value="{{ pre_weight }}"/></td>
		        </tr>
		        <tr><td>&nbsp;</td></tr>
		        <tr>
			        <td>Height<input type="text" name="height" maxlength="4" value="{{ height }}"/>i.e. 1.2</td>
		        </tr>
		        <tr><td>&nbsp;</td></tr>
		        <tr>
			        <td>Age<input type="text" name="age" maxlength="2" value="{{ age }}"/></td>
		        </tr>      
		        <tr><td>&nbsp;</td></tr>
		        <tr>
			        <td>BMI<input type="text" name="bmi" maxlength="3" value="{{ bmi }}"/></td>
		        </tr>
		        <tr>
			        <td>Timezone:
						<input type="hidden" id="timezones" value="{{ tmz }}"/>
						<select name="timezone" id="timezone">

						</select>					
					</td>
		        </tr>				
		        <tr><td>&nbsp;</td></tr>	
		        <tr><td><button id="create" type="submit">Update Account</button></td></tr>
	        </table>         
	        </form>-->
        </div>                           
        <div class="ad_bottom"></div>                                     
    </div>
    
    <div class="col3">
        <h3 style="color: #014586; padding-bottom: 20px;">More Details on iCoach</h3>
        <img alt="picture1" src="/media/img/pic_1.jpg" />
        <p><a href="">Maecenas eget magna leo, et</a> aliquet metus. Donec in eros purus.
           Phasellus nunc nunc, dapibus ac lobortis non, mollis eu nulla.</p>
        <img alt="picture2" src="/media/img/pic_2.jpg" />
        <p><a href="">Maecenas eget magna leo, et</a> aliquet metus. Donec in eros purus.
           Phasellus nunc nunc, dapibus ac lobortis non, mollis eu nulla.</p>
    </div>                                 
{% endblock %}  